﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="brockredge.Search" EnableEventValidation="false"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    
    <script type="text/javascript">
        $('.searchdv').corner();
        $('.resultdv').corner();
       
        $('#img').corner();
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
<tr valign="top">
<td>
    <div id="searchPaneldv" style="width:250px; height:auto; background-color:#7E2217; color:White; float:left;"> 
        <asp:Panel ID="pnlsearch" runat="server">
       
            <table>
                <tr>
                    <td>Search 
                    </td>
                </tr>
                <tr>
                    <td>Property For
                    </td>
                    <td>
                        <asp:CheckBox ID="chkSell" runat="server" Text="Sell"/><asp:CheckBox ID="chkRent" runat="server" Text="Rent"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbState" runat="server" Text="Country"></asp:Label>
                    </td>
                    <td>
                    
            <asp:DropDownList ID="ddlState" runat="server" Width="100px">
            </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
            <asp:Label ID="lblCity" runat="server" Text="State"></asp:Label>
           </td>
           <td>
           <asp:DropDownList ID="ddlcity" runat="server" width="100px">
           
            </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
            <asp:Label ID="lblArea" runat="server" Text="City"></asp:Label>
           </td>
           <td>
     
            <asp:DropDownList ID="ddlarea" runat="server" Width="100px">
            <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="searchbtn" runat="server" Text="search" 
                            onclick="searchbtn_Click" />
                    </td>
                </tr>
            </table>
       
    </asp:Panel>
    </div>
</td>
<td>
    <div id="resultSearchDV" style="width:620px;float:right;">
    <asp:Repeater ID="resultRep" runat="server">
            
    
<ItemTemplate>      
                       
                        <table width="100%">
                        <tr>
                        <td colspan="2">
        
                        <hr />
       
                        </td>
                        </tr>
                        <tr valign="top">
        
                        <td style="width:3%; padding-left:5px;" id="addimgdiv" class="addimgdiv">
                            <img src="IMAGES/defHome.jpg" id ="img" class="img"/>   
                        </td>
                        <td align="left" style="padding-left:4px;"> 
                            <span style="color:Maroon;"><b><%# DataBinder.Eval(Container.DataItem, "Title") %></b></span>
                            <br />
                            <%# DataBinder.Eval(Container.DataItem, "Description") %><br />
                        </td>
                        </tr>
                        <tr>
                        <td colspan="2">
        
                        <hr />
       
                        </td>
                        </tr>
                        </table>        
                        </div>
                        
                        </ItemTemplate>

        </asp:Repeater>
 </div>
 </td>
 </tr>
 </table>
    
  

    
    <asp:CascadingDropDown ID="CddlState" 
                                   TargetControlID="ddlState" 
                                   runat="server"
                                   Category="State"
                                   PromptText="State:"
                                   LoadingText="Loading..."
                                   ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                   ServiceMethod="getStates">
    </asp:CascadingDropDown>
    <asp:CascadingDropDown ID="CddlCity" 
                               runat="server"
                               TargetControlID="ddlCity"
                               Category="City"
                               ParentControlID="ddlState"
                               PromptText="City:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getCitiesByState">
    </asp:CascadingDropDown>
    <asp:CascadingDropDown ID="cddlArea" 
                               runat="server"
                               TargetControlID="ddlArea"
                               Category="Area"
                               ParentControlID="ddlCity"
                                PromptText="Area:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getAreas">
    </asp:CascadingDropDown>
</asp:Content>
